package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 用户收藏信息
 * @author Rongjie
 */
@Data
@TableName("mall_user_collect")
@KeySequence(value = "mall_user_collect_SEQ")
@ApiModel(value = "MallUserCollect对象")
public class MallUserCollect implements Serializable{

       @ApiModelProperty(value = "应用KEY")
       private String appKey;

       @TableId(value = "collect_key", type = IdType.UUID)
       @ApiModelProperty(value = "业务KEY")
       private String collectKey;

       @ApiModelProperty(value = "用户KEY")
       private String userKey;

       @ApiModelProperty(value = "收藏类型: GOODS/USER/ARTICLE/...")
       private String collectType;

       @ApiModelProperty(value = "收藏的目标KEY")
       private String targetKey;

       @ApiModelProperty(value = "弹性域1")
       private String flexSegment1;

       @ApiModelProperty(value = "弹性域2")
       private String flexSegment2;

       @ApiModelProperty(value = "弹性域3")
       private String flexSegment3;

       private String flexJson;

       private Integer createTime;

       private Integer updateTime;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
